<{$xoTheme->addStylesheet("modules/`$xoops_dirname`/templates/style.css")}>
<{if !$xoops_isadmin}>
<div id="support_index_crumb" class="breadcrumbs">
    <{foreach item=itm from=$xoBreadcrumbs name=bcloop}>
       
        <{if $itm.link}>
            <a href="<{$itm.link}>" title="<{$itm.title}>"><{$itm.title}></a>
        <{else}>
            <{$itm.title}>
        <{/if}>
        <{if !$smarty.foreach.bcloop.last}>
            &raquo;
        <{/if}>
    <{/foreach}>
</div>

<{if $user.level eq 'customer'}><div><a href="index.php?op=add"><{$smarty.const._MA_SUPPORT_ASK}></a></div><{/if}>
<{include file="db:support_manager.html"}>

<div class="support_search">
    <form name="search" method="post" action="index.php">
        <{$smarty.const._MA_SUPPORT_SEARCH}>：
        <select name="select">
            <{foreach item=item key=key from=$list}>
                <option value="<{$key}>" <{if $key eq $select}>selected="selected"<{/if}>><{$item}></option>
            <{/foreach}>
        </select>
        <input type="text" name="keyword" size="30" maxlength="255" tabindex="1" />
        <input type="submit" value="<{$smarty.const._MA_SUPPORT_QUERY}>" tabindex="2" />
    </form>
</div>

<table class="outer" align="left"> 
    <th align="center"><{$smarty.const._MA_SUPPORT_TITLE}></th>
    <th align="center"><{$smarty.const._MA_SUPPORT_BELONGCAT}></th>
    <th align="center"><{$smarty.const._MA_SUPPORT_CURRENTSTATUS}></th>
    <th align="center"><{$smarty.const._MA_SUPPORT_PUBDATE}></th>
    <th align="center"><{$smarty.const._MA_SUPPORT_ENDDATE}></th>
    <{foreach item=item from=$process}>
    <tr class="<{cycle values='odd, even'}>" align="center">
        <td width="50%" align="left">&nbsp;&nbsp;<a href="info.php?pro_id=<{$item.pro_id}>"><{$item.subject}></a></td>
        <td width="10%"><{if $item.cat_name}><{$item.cat_name}><{else}><{$smarty.const._MA_SUPPORT_DEFAULTCAT}><{/if}></td>
        <td width="10%"><span style="color:<{if $item.action eq 'finish'}>green<{else}>red<{/if}>"><{$item.status}></span></td>  
        <td width="10%"><{$item.create_time}></td>
        <td width="10%"><{if $item.last_reply_time}><{$item.last_reply_time}><{else}><{$smarty.const._MA_SUPPORT_UNDONE}><{/if}></td> 
    </tr>
    <{/foreach}>
</table>

<br style="clear: both;"/>
<{$pagenav}>
<{/if}>